<template>
  <div class="home-container">
    <div class="header">
      <h1>在线客服系统</h1>
      <div class="nav-buttons">
        <button @click="$router.push('/user/login')" class="btn user-btn">用户入口</button>
        <button @click="$router.push('/admin/login')" class="btn admin-btn">客服入口</button>
      </div>
    </div>
    
    <div class="main-content">
      <div class="intro">
        <h2>欢迎使用在线客服系统</h2>
        <p>选择对应的入口开始使用系统功能</p>
      </div>
    </div>
  </div>
</template>

<script setup>
// 首页逻辑
</script>

<style scoped>
.home-container {
  height: 100vh;
  background-color: #f5f7fa;
  display: flex;
  flex-direction: column;
}

.header {
  background-color: #165DFF;
  color: white;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  margin: 0;
  font-size: 24px;
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.user-btn {
  background-color: white;
  color: #165DFF;
}

.admin-btn {
  background-color: #0e47d1;
  color: white;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro {
  text-align: center;
  padding: 40px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.intro h2 {
  color: #333;
  margin-bottom: 15px;
}

.intro p {
  color: #666;
  font-size: 18px;
}
</style>
